package com.sky.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import com.sky.domain.BaseEntity;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 套餐
 */
@Data
@EqualsAndHashCode(callSuper = true)
@SearchBean(tables = "setmeal s", where = "s.del_flag = '0'")
@TableName("setmeal")
public class Setmeal extends BaseEntity {

    @DbField("s.id")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    //分类id
    @DbField("s.category_id")
    private Long categoryId;

    //套餐名称
    @DbField("s.name")
    private String name;

    //套餐价格
    @DbField("s.price")
    private BigDecimal price;

    //状态 0:启用 1:停用
    @DbField("s.status")
    private Integer status;

    //描述信息
    @DbField("s.description")
    private String description;

    //图片
    @DbField("s.image")
    private String image;
}
